package day12;

import java.io.File;

public class test01 {
    public static void main(String[] args) {
        File file=new File("E:\\cs_it heima\\aaa");
       // boolean mkdirs = file.mkdirs();
       // System.out.println(mkdirs);
        deleteFile(file);
    }

    private static void deleteFile(File file) {
        File[] files = file.listFiles();
        for (File file1 : files) {
            if (file1.isFile()){
               file1.delete();
            }else {
                deleteFile(file1);
            }

        }
        file.delete();
    }


}
